package com.cmccgz.udacs_landlord_webapp.data.local;

import android.support.annotation.NonNull;

import com.cmccgz.udacs_landlord_webapp.R;
import com.cmccgz.udacs_landlord_webapp.bean.AccreditCardBean;
import com.cmccgz.udacs_landlord_webapp.bean.HouseManagerBean;
import com.cmccgz.udacs_landlord_webapp.bean.MobileBean;
import com.cmccgz.udacs_landlord_webapp.data.BaseCallback;
import com.cmccgz.udacs_landlord_webapp.data.HouseManagerDataSource;
import com.cmccgz.udacs_landlord_webapp.main.housemanager.list.HouseListActivity;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: Huang
 * @Descripion:
 * @date 2017/6/22 15:05
 */

public class HouseManagerLocalDataSource implements HouseManagerDataSource {

    private static HouseManagerLocalDataSource INSTANCE;

    private HouseManagerLocalDataSource() {
    }

    public static HouseManagerLocalDataSource getInstance() {
        if (INSTANCE == null) {
            INSTANCE = new HouseManagerLocalDataSource();
        }
        return INSTANCE;
    }

    @Override
    public void getFunctionList(@NonNull FunctionListCallback callback) {
        List<HouseManagerBean> list = new ArrayList<>();
        list.add(new HouseManagerBean(HouseListActivity.TYPE_RENT_ROOM,"租房", R.mipmap.icon_zhufang));
        list.add(new HouseManagerBean(HouseListActivity.TYPE_CHECKOUT,"退房", R.mipmap.icon_tuifang));
        list.add(new HouseManagerBean(HouseListActivity.TYPE_EXCHANGE,"换房", R.mipmap.icon_huanfang));
        list.add(new HouseManagerBean(HouseListActivity.TYPE_ROOM_COUNT,"房屋出租统计", R.mipmap.icon_tongji));
        callback.onFunctionListLoaded(list);
    }

    @Override
    public void getHouseList(@NonNull String searchType, @NonNull String keyword, @NonNull String oCond, @NonNull int page, @NonNull HouseListCallback callback) {

    }

    @Override
    public void getHouseDetail(@NonNull String houseId, @NonNull HouseDetailCallback callback) {

    }

    @Override
    public void getBuildingCount(@NonNull String buildingId, @NonNull BuildingCountCallback callback) {

    }

    @Override
    public void checkout(@NonNull List<MobileBean> bean, @NonNull String houseId, @NonNull BaseCallback callback) {

    }

    @Override
    public void houseChange(@NonNull List<MobileBean> bean, @NonNull String oldHouseId, @NonNull String newHouseId, @NonNull BaseCallback callback) {

    }

    @Override
    public void accreditCard(@NonNull AccreditCardBean bean, @NonNull BaseCallback callback) {

    }
}
